package cn.demomaster.quickdb_compiler;

public class ColumnElement {
    private String columnName;
    private String columnType;
    private String fieldName;
    private String fieldType;
    private boolean isPrimaryKey;
    private boolean isAutoIncrement;
    private boolean isNotNull;
    private boolean isUnique;
    private String defaultValue;
    private String extra;
    private String comment;
    private String valueFormat;

    public ColumnElement(String columnName, String columnType, String fieldName, String fieldType, boolean isPrimaryKey, boolean isAutoIncrement, String defaultValue, String columnComment,boolean isNotNull,boolean isUnique,String valueFormat) {
        this.columnName = columnName;
        this.columnType = columnType;
        this.fieldName = fieldName;
        this.fieldType = fieldType;
        this.isPrimaryKey = isPrimaryKey;
        this.isAutoIncrement = isAutoIncrement;
        this.defaultValue = defaultValue;
        this.comment = columnComment;
        this.isNotNull = isNotNull;
        this.isUnique = isUnique;
        this.valueFormat = valueFormat;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public boolean isPrimaryKey() {
        return isPrimaryKey;
    }

    public void setPrimaryKey(boolean primaryKey) {
        isPrimaryKey = primaryKey;
    }

    public boolean isAutoIncrement() {
        return isAutoIncrement;
    }

    public void setAutoIncrement(boolean autoIncrement) {
        isAutoIncrement = autoIncrement;
    }

    public boolean isNotNull() {
        return isNotNull;
    }

    public void setNotNull(boolean notNull) {
        isNotNull = notNull;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public boolean isUnique() {
        return isUnique;
    }

    public void setUnique(boolean unique) {
        isUnique = unique;
    }

    public String getValueFormat() {
        return valueFormat;
    }

    public void setValueFormat(String valueFormat) {
        this.valueFormat = valueFormat;
    }
}
